#include "include/gudb.h"
#include <stdio.h>

int main() {
    printf("Starting simple GuDB test...\n");
    
    // Test database open
    printf("Testing gudb_open...\n");
    gudb* db = gudb_open("./simple_test_db", GU_OPEN_CREATE | GU_OPEN_READWRITE, "admin", "password");
    
    if (db) {
        printf("Database opened successfully!\n");
        
        // Test database close
        printf("Testing gudb_close...\n");
        int result = gudb_close(db);
        if (result == GU_OK) {
            printf("Database closed successfully!\n");
        } else {
            printf("Failed to close database: %d\n", result);
        }
    } else {
        printf("Failed to open database\n");
        printf("Error: %s\n", gudb_error(NULL));
    }
    
    printf("Simple test completed.\n");
    return 0;
}